package com.tem.customer.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 陈辉
 * @since 2023-11-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("customer_address")
@ApiModel(value="CustomerAddress对象", description="")
public class CustomerAddress implements Serializable {
    private static final long serialVersionUID=49800934023212351L;
    @ApiModelProperty(value = "个人收件地址")
    @TableId(value = "customer_address_id", type = IdType.AUTO)
    private Long customerAddressId;

    @ApiModelProperty(value = "会员")
    @TableField("customer_id")
    private Long customerId;

    @ApiModelProperty(value = "部门/分店")
    @TableField("sys_branch_office_id")
    private Long sysBranchOfficeId;

    @ApiModelProperty(value = "系统")
    @TableField("system_level_id")
    private Long systemLevelId;

    @ApiModelProperty(value = "省份")
    @TableField("province")
    private String province;

    @ApiModelProperty(value = "城市")
    @TableField("city")
    private String city;

    @ApiModelProperty(value = "片区 商圈")
    @TableField("district")
    private String district;

    @ApiModelProperty(value = "自己输入门牌号")
    @TableField("door_number")
    private String doorNumber;

    @ApiModelProperty(value = "路径")
    @TableField("region_path")
    private String regionPath;

    @ApiModelProperty(value = "详细地址")
    @TableField("detailed")
    private String detailed;

    @ApiModelProperty(value = "联系人")
    @TableField("rec_name")
    private String recName;

    @ApiModelProperty(value = "联系电话")
    @TableField("rec_tel")
    private String recTel;

    @ApiModelProperty(value = "邮编")
    @TableField("zip")
    private String zip;

    @ApiModelProperty(value = "邮箱")
    @TableField("email")
    private String email;

    @ApiModelProperty(value = "经度 配送地址")
    @TableField("longitude")
    private BigDecimal longitude;

    @ApiModelProperty(value = "纬度 配送地址")
    @TableField("latitude")
    private BigDecimal latitude;

    @ApiModelProperty(value = "是否默认地址")
    @TableField("is_default")
    private Integer isDefault;

    @ApiModelProperty(value = "1家 2公司 3学校")
    @TableField("dtype")
    private Integer dtype;


}
